package com.example.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.example.entity.BasDict;
import com.example.mapper.BasDictMapper;
import com.example.service.IBasDictService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 */
@Service
public class BasDictServiceImpl extends ServiceImpl<BasDictMapper, BasDict> implements IBasDictService {

    @Override
    public List<BasDict> selectTypeList(String type) {
        QueryWrapper<BasDict> queryWrapper =new QueryWrapper<>();
        queryWrapper.lambda().eq(BasDict::getDictType,type);

        return list(queryWrapper);
    }
}
